#!/bin/sh

cd /root/workspace/stockweb
git pull
mvn package -Dmaven.test.skip=true

cd ~/

ps -ef | grep stockweb | grep jar | awk '{print $2}' | xargs kill -9

echo "killed"

java -jar /root/workspace/stockweb/target/stockweb-0.0.1-SNAPSHOT.jar > ~/stock.log &

echo "finash"
